package com.infocollect.project.api.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.infocollect.project.api.entity.TappApiOpertionEntity;
import com.infocollect.project.api.mapper.TappApiOpertionMapper;
import com.infocollect.project.api.service.ITappApiopertionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* (TappApiopertion)表服务实现类
*
* @author Mr.Wang
* @version 1.0
* @since 2020/6/1 21:28
*/
@Service("TappApiopertionService")
public class TappApiOpertionServiceImpl extends ServiceImpl<TappApiOpertionMapper, TappApiOpertionEntity> implements ITappApiopertionService {

    @Override
    public  TappApiOpertionEntity queryById(Integer id){
        return baseMapper.queryById(id);
    }
    @Override
    public List<TappApiOpertionEntity> queryAll(TappApiOpertionEntity entity){
        return baseMapper.queryAll(entity);
    }
    @Override
    public int insert(TappApiOpertionEntity entity){
        return baseMapper.insert(entity);
    }
    @Override
    public int update(TappApiOpertionEntity entity){
        return baseMapper.updateById(entity);
    }
    @Override
    public int  deleteById(Integer id){
        return baseMapper.deleteById(id);
    }
    @Override
    public TappApiOpertionEntity queryByApiCode( String apicode){
        return baseMapper.queryByApiCode(apicode);
    }

}